package com.woniu.humanresource.service.impl;

import com.woniu.humanresource.dao.RecruitChannelDao;
import com.woniu.humanresource.entity.RecruitmentChannel;
import com.woniu.humanresource.service.RecruitChannelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class RecruitChannelServiceImpl implements RecruitChannelService {
    @Resource
    RecruitChannelDao recruitChannelDao;
    @Override
    public List<RecruitmentChannel> selectAll() {
        return recruitChannelDao.selectAll();
    }

    @Override
    public void insertRecruit(String name) {
        recruitChannelDao.insertRecruit(name);
    }

    @Override
    public void deleteRecruit(int id) {
        recruitChannelDao.deleteRecruit(id);
    }
}
